﻿using System;

class FirstContact
{
    // 1.Example
    //static void PrintLogo()
    //{
    //    Console.WriteLine("Telerik Corp.");
    //    Console.WriteLine("www.telerik.com");
    //}

    // 2.Example
    //static void PrintAcademyLogo()
    //{
    //    Console.WriteLine("Telerik Academy");
    //    Console.WriteLine("part of:");
    //    PrintLogo();
    //}

    // 3.Example
    //static void PrintSign(int number)
    //{
    //    if (number > 0)
    //    {
    //        Console.WriteLine("number is positive");
    //    }
    //    else if (number < 0)
    //    {
    //        Console.WriteLine("number is negative");
    //    }
    //    else
    //    {
    //        Console.WriteLine("number is zero");
    //    }
    //}

    // 4.Example
    //static void PrintMax(float a, float b)
    //{
    //    float max = a;

    //    if (b > a)
    //    {
    //        max = b;
    //        Console.WriteLine("maximal nuber is:b={0}", max);
    //    }
    //    else
    //    {
    //        Console.WriteLine("maximal nuber is:a={0}", max);
    //    }
    //}

    // 5.Example
    //static void MakeNumberPositive(int number)
    //{
    //    if (number < 0)
    //    {
    //        number = number * (-1);
    //    }
    //    //Console.WriteLine(number);
    //}

    // 6.Example
    /*static void PrintLine(int start, int end)
    {
        for (int i = start; i <= end; i++)
        {
            Console.Write(i + " ");
        }
        Console.WriteLine();
    }
    static void Main()
    {
        int n = 7;
        DateTime start1 = DateTime.Now;
        for (int line = 1; line <= n; line++)
        {
            for (int i = 1; i <= line; i++)
            {
                Console.Write(i + " ");
            }
            Console.WriteLine();
        }
        for (int line = n - 1; line >= 1; line--)
        {
            for (int i = 1; i <= line; i++)
            {
                Console.Write(i + " ");
            }
            Console.WriteLine();
        }
        DateTime end1 = DateTime.Now;
        Console.WriteLine(end1 - start1);

        Console.WriteLine();

        DateTime start2 = DateTime.Now;
        int n1 = 7;
        for (int line = 1; line <= n1; line++)
        {
            PrintLine(1, line);
        }
        for (int line = n1-1; line >=1; line--)
        {
            PrintLine(1,line);
        }
        DateTime end2 = DateTime.Now;
        Console.WriteLine(end2-start2);*/

    static void Main()
    {
        //int n = -5;
        //MakeNumberPositive(n); 
        //Console.WriteLine(n);

        //PrintMax(6, 5);
        //PrintSign(5);
        //PrintAcademyLogo();
        //PrintLogo();
    }
}